package com.agile.major.service;

import com.agile.major.domain.RecruitStudent;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Service Interface for managing RecruitStudent.
 */
public interface RecruitStudentService {

    /**
     * Save a recruitStudent.
     *
     * @param recruitStudent the entity to save
     * @return the persisted entity
     */
    RecruitStudent save(RecruitStudent recruitStudent);

    /**
     *  Get all the recruitStudents.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<RecruitStudent> findAll(Pageable pageable);

    /**
     *  Get the "id" recruitStudent.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    RecruitStudent findOne(Long id);

    /**
     *  Delete the "id" recruitStudent.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);
    /**
     * 根据时间与专业获取专业信息
     */
    List<RecruitStudent> getRecruitStuByMajorAndYear(Long id, String year);
}
